package com.jeesite.modules.ch.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * ch_channelEntity
 * @author 李寒冰
 * @version 2025-08-27
 */
@Table(name="ch_channel", alias="a", label="ch_channel信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="company", attrName="company", label="公司名称"),
		@Column(name="meiti_name", attrName="meitiName", label="媒体名称", queryType=QueryType.LIKE),
		@Column(name="fuzeren", attrName="fuzeren", label="负责人"),
		@Column(name="lianxihaoma", attrName="lianxihaoma", label="联系号码"),
		@Column(name="beizhu", attrName="beizhu", label="备注"),
		@Column(name="app_id", attrName="appId", label="APPID"),
		@Column(name="app_secret", attrName="appSecret", label="appsecret"),
		@Column(name="ticheng_bili", attrName="tichengBili", label="抽成比例"),
		@Column(name="callback_url", attrName="callbackUrl", label="回调地址"),
		@Column(name="zhanghao", attrName="zhanghao", label="账号"),
		@Column(name="user_code", attrName="userCode", label="后台账户ID"),
}, orderBy="a.id DESC"
)
public class ChChannel extends DataEntity<ChChannel> {
	
	private static final long serialVersionUID = 1L;
	private String company;		// 公司名称
	private String meitiName;		// 媒体名称
	private String fuzeren;		// 负责人
	private String lianxihaoma;		// 联系号码
	private String beizhu;		// 备注
	private String appId;		// APPID
	private String appSecret;		// appsecret
	private String tichengBili;		// 抽成比例
	private String callbackUrl;
	private String zhanghao;
	private String userCode;

	private double yue;
	private int overNum;
	private double liushuOver;

	public double getYue() {
		return yue;
	}

	public void setYue(double yue) {
		this.yue = yue;
	}

	public int getOverNum() {
		return overNum;
	}

	public void setOverNum(int overNum) {
		this.overNum = overNum;
	}

	public double getLiushuOver() {
		return liushuOver;
	}

	public void setLiushuOver(double liushuOver) {
		this.liushuOver = liushuOver;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getZhanghao() {
		return zhanghao;
	}

	public void setZhanghao(String zhanghao) {
		this.zhanghao = zhanghao;
	}

	public String getCallbackUrl() {
		return callbackUrl;
	}

	public void setCallbackUrl(String callbackUrl) {
		this.callbackUrl = callbackUrl;
	}

	public ChChannel() {
		this(null);
	}
	
	public ChChannel(String id){
		super(id);
	}
	
	@Size(min=0, max=255, message="公司名称长度不能超过 255 个字符")
	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}
	
	@Size(min=0, max=255, message="媒体名称长度不能超过 255 个字符")
	public String getMeitiName() {
		return meitiName;
	}

	public void setMeitiName(String meitiName) {
		this.meitiName = meitiName;
	}
	
	@Size(min=0, max=255, message="负责人长度不能超过 255 个字符")
	public String getFuzeren() {
		return fuzeren;
	}

	public void setFuzeren(String fuzeren) {
		this.fuzeren = fuzeren;
	}
	
	@Size(min=0, max=255, message="联系号码长度不能超过 255 个字符")
	public String getLianxihaoma() {
		return lianxihaoma;
	}

	public void setLianxihaoma(String lianxihaoma) {
		this.lianxihaoma = lianxihaoma;
	}
	
	@Size(min=0, max=255, message="备注长度不能超过 255 个字符")
	public String getBeizhu() {
		return beizhu;
	}

	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
	
	@Size(min=0, max=255, message="APPID长度不能超过 255 个字符")
	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}
	
	@Size(min=0, max=255, message="appsecret长度不能超过 255 个字符")
	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}
	
	@Size(min=0, max=255, message="抽成比例长度不能超过 255 个字符")
	public String getTichengBili() {
		return tichengBili;
	}

	public void setTichengBili(String tichengBili) {
		this.tichengBili = tichengBili;
	}
	
}